import Vue from 'vue';
import vuex from 'vuex';
import state from './state';
import * as actions from './actions';
import * as getters from './getters';
import mutations from './mutations';
import groupModule from './modules/group';
import commentsModule from './modules/comments';

Vue.use(vuex);

export default new vuex.Store({
  state: state(),
  actions,
  getters,
  mutations,
  modules: {
    group: groupModule,
    comments: commentsModule,
  },
});
